﻿@using System.ComponentModel.DataAnnotations

@typeparam TItem

@inject IModalService ModalService;

<EditForm Model="@this">
    <LookupField TObject="TItem" @bind-Value="@Item" Label="@typeof(TItem).Name"/>

    <button type="submit" @onclick="@Submit" class="btn-primary">OK</button>
    <button @onclick="@Cancel" class="btn-secondary">Cancel</button>
</EditForm>
